package com.pxmeta.dynamic.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pxmeta.circle.entity.Circle;
import com.pxmeta.dynamic.entity.vo.TopicVO;
import com.pxmeta.dynamic.entity.vo.VideoVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class DynamicDTO implements Serializable {
    @ApiModelProperty(value = "动态id")
    private Long id;
    @ApiModelProperty(value = "发布人id")
    private Long authorId;
    @ApiModelProperty(value = "用户名")
    private String account;
    @ApiModelProperty(value = "圈子id")
    private Long circleId;
    @ApiModelProperty(value = "圈子类型")
    private Integer circleType;
    @ApiModelProperty(value = "发布人昵称")
    private String name;
    @ApiModelProperty(value = "价格")
    private Double price;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "原价")
    private Double originalPrice;
    @ApiModelProperty(value = "技能id")
    private Integer skillId;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty(value = "级别: 1管理，2圈主")
    private Integer level;
    @ApiModelProperty(value = "状态:0人工审核中，1审核通过，-1不通过，2未发布，3机器审核中")
    private Integer status;
    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
    @ApiModelProperty(value = "喜欢数")
    private Long likeCount = 0L;
    @ApiModelProperty(value = "评论数")
    private Long commentCount = 0L;
    @ApiModelProperty(value = "发布内容")
    private String content;
    @ApiModelProperty(value = "图片列表")
    private List<String> pic;
    @ApiModelProperty(value = "视频列表")
    private List<VideoVO> videoList;
    private String picUrls;
    private String videoIds;
    @ApiModelProperty(value = "音频地址")
    private String audioUrl;
    @ApiModelProperty(value = "音频时长")
    private String audioTime;
    @ApiModelProperty(value = "分享数")
    private Integer shareCount = 0;
    @ApiModelProperty(value = "是否喜欢")
    private Boolean isLike = false;
    @ApiModelProperty(value = "位置")
    private String address;
    @ApiModelProperty(value = "权限")
    private Integer viewPermission;
    @ApiModelProperty(value = "是否关注")
    private Boolean isFollow = false;
    @ApiModelProperty(value = "类型: 1文字，2图片，3文字和图片")
    private Integer type;
    @ApiModelProperty(value = "话题")
    private List<TopicVO> topicList;
    private String topicIds;
    @ApiModelProperty(value = "圈子详情")
    private Circle circle;
    @ApiModelProperty(value = "是否是自己")
    private Boolean isMyself = false;

    @ApiModelProperty(value = "动态类型，0普通动态，1群聊动态")
    private Integer dynamicType;

    @ApiModelProperty(value = "群聊id")
    private String chatGroupId;

    @ApiModelProperty(value = "距离")
    private String distance;

    @ApiModelProperty(value = "群聊用户数")
    private String chatGroupUserCount;

    @ApiModelProperty(value = "群聊名称")
    private String chatGroupName;

    @ApiModelProperty(value = "群聊头像")
    private String chatGroupAvatar;


}
